package ezeye.device;

import java.io.Serializable;

public class EyeDeviceInfo implements  Serializable{
    private String mName = null;
    private String mHost = null;
    private /*short*/int mPort = 0;
    private String mUser = null;
    private String mPassword = null;
    private byte mDefaultChan = 0;
    private byte mChanTotal = 0;
    private int mAlarmOpen = 0;
    private int mAlarmCount = 0;
    private String mDeviceID = null;
    private int mVeri = 0;
    private int mVersion = 0;
    
    public EyeDeviceInfo(String name) {
        assert(null != name);
        mName = new String(name);
        mHost =new String("");
        mPort = 0;
        mUser = new String("");
        mPassword = new String("");
        mChanTotal = 0;
        mAlarmOpen = 0;
        mAlarmCount = 0;
        mDeviceID = new String("");
        mVeri = 0;
        mVersion = 0;
    }
    
    public String getName() {
        return mName;
    }
    
    public String getHost() {
        return mHost;
    }
    
    public void setHost(String val) {
        if (val != null)
            mHost = new String(val);
        else
            mHost = null;
    }
    
    public int getPort() {
        return mPort;
    }
    
    public void setPort(int val) {
        mPort = val;
    }
    
    public String getUser() {
        return mUser;
    }
    
    public void setUser(String val) {
        if (val != null)
            mUser = new String(val);
        else
            mUser = null;
    }
    
    public String getPassword() {
        return mPassword;
    }
    
    public void setPassword(String val) {
        if (val != null)
            mPassword = new String(val);
        else
            mPassword = null;
    }
    
    public byte getChanDefault() {
        return mDefaultChan;
    }
    
    public void setChanDefault(byte chanDefault) {
        mDefaultChan = chanDefault;
    }
    
    public byte getChanTotal() {
        return mChanTotal;
    }
    
    public void setChanTotal(byte chanTotal) {
        mChanTotal = chanTotal;
    }
    
    public int getAlarmOpen() {
        return mAlarmOpen;
    }
    
    public void setAlarmOpen(int val) {
        mAlarmOpen = val;
    }
    
    public int getAlarmCount() {
        return mAlarmCount;
    }
    
    public void setAlarmCount(int val) {
        mAlarmCount = val;
    }
    
    public String getDeviceInfo() {
        return mDeviceID;
    }
    
    public void setDeviceInfo(String val) {
        if (val != null)
            mDeviceID = new String(val);
        else
            mDeviceID = null;
    }
    
    public void setVeri(int val)
    {
    	mVeri = val;
    }
    
    public int getVeri()
    {
    	return mVeri;
    }
    
    public void setVersion(int val)
    {
    	mVersion = val;
    }
    
    public int getVersion()
    {
    	return mVersion;
    }
}
